﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing.Drawing2D;

namespace Lib.Pieces
{
    class BShape : IShape 
    {
        GraphicsPath graph;
        Color color;
        public BShape(bool black = false)
        {
            if (black)
            {
                this.color = new Color(100, 100, 100);
            }
            else
            {
                this.color = new Color(200, 200, 200);
            }
            this.graph = new GraphicsPath();
            this.graph.AddLine(10, 90, 10, 10);
            this.graph.AddArc(10, 10, 55, 35, -90, 180);
            this.graph.AddArc(10, 45, 70, 45, -90, 180);
            this.graph.AddLine(40, 90, 10, 90);
            this.graph.StartFigure();
            this.graph.AddLine(30, 33, 30, 20);
            this.graph.AddArc(30, 20, 15, 15, -90, 180);
            this.graph.CloseFigure();
            this.graph.StartFigure();
            this.graph.AddLine(30, 76, 30, 60);
            this.graph.AddArc(30, 60, 25, 15, -90, 180);
            this.graph.CloseFigure();
        }
        public System.Drawing.Drawing2D.GraphicsPath GetShape()
        {
            return this.graph;
        }

        public Color GetShapeColor()
        {
            return this.color;
        }
    }
}
